package com.wyz.note.project.auth.domain.controller;

import io.swagger.annotations.Api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 用户基础信息控制器
 * @Author: wei yz
 * @Date: 2022/6/19 14:32
 */
@RestController
@RequestMapping("/userInfo")
@Api(tags = "用户基础信息")
public class UserBaseInfoController {
    private static final Logger log = LoggerFactory.getLogger(UserBaseInfoController.class);


    @GetMapping("/admin/hello")
    public String admin() {
        log.info("管理员接口：/userInfo/admin/hello");
        return "管理员接口：/userInfo/admin/hello";
    }

    @GetMapping("/user/hello")
    public String user() {
        log.info("普通用户接口：/userInfo/user/hello");
        return "普通用户接口：/userInfo/user/hello";
    }

    @GetMapping("/guest/hello")
    public String guest() {
        log.info("游客接口：/userInfo/guest/hello");
        return "游客接口：/userInfo/guest/hello";
    }

    @GetMapping("/hello")
    public String hello() {
        log.info("普通接口：/userInfo/hello");
        return "普通接口：/userInfo/hello";
    }


}
